<!DOCTYPE html>
<html>
<#include "../../include/resource.html">
<body>
	<#assign nid="member">
	<#include "../../include/header.html">
	<!--header-end-->
	<!--用户中心的主栏目 开始-->
	<#include "../../include/member_header.html">
	<div id="container" class="clearfix" >
		<div class="usermain clearfix">
			<!--左边的导航 开始-->
			<div class="user_left">
            	<#assign mid="m_invest" >
				<#include "../user_menu.html"></div>
			<!--左边的导航 结束-->

			<!--右边的内容 开始-->
			<div class="user_right">
				<#if msg?exists>
				<div id="msg24">
					<p class="ok">${msg}</p>
				</div>
				<#else> <#if errormsg?exists>
				<div id="msg25">
					<p class="error">${errormsg}</p>
				</div>
				</#if> </#if>
				<div class="user_right_menu">
					<#assign invest_type="tender">
					<#include "invest_menu.html"></div>
				<div class="user_right_main">
					<table  border="0"  cellspacing="1" class="table table-striped  table-condensed" style="width:100%">
						  <form cur="" method="post">
							<tr class="head" >
								<td>借款者</td>
								<td>借款标</td>
								<td>借出总额</td>
								<td>收益总额</td>
								<td>已收总额</td>
								<td>待收总额</td>
								<td>已收利息</td>
								<td>待收利息</td>
								<td>协议</td>
							</tr>
							<#import "../../common/function.html" as func>  
							<#list tender as item>
							<tr>
								<td>${item.op_username}</td>
								<td><a href="${webroot}/invest/detail.html?id=${item.borrow_id?c}">${item.borrow_name!}</a></td>
								<td>￥${func.format2(item.account!0)}</td>
								<td>￥${func.format2(item.repayment_account!0)}</td>
								<td>￥${func.format2(item.repayment_yesaccount!0)}</td>
								<td>￥${func.format2(item.wait_account!0)}</td>
								<td>￥${func.format2(item.repayment_yesinterest!0)}</td>
								<td>￥${func.format2(item.wait_interest!0)}</td>
								<td><a href="${webroot}/borrow/protocol.html?type=new&id=${item.borrow_id?c}&tender_id=${item.id?c}">下载</a></td>
							</tr>
							</#list>
							
						</form>	
					</table>
                    <div align="center">
                        <#import "../../common/page.html" as pager>  
                        <@pager.pagination page=page url="/member/invest/tender.html" map=param style="style1"  /> 
                    </div>
				</div>
			</div>
			<!--右边的内容 结束-->
		</div>
	</div>
	<!--用户中心的主栏目 结束-->
	<script
		src="${webroot}${theme_dir}/media/js/modal.js"></script>

	<#include "../../include/footer.html">
</body>
</html>